<?php
	require "../dao/staff_dao.php";
	
	$sturoll = [];
	$sturoll["stuid"] = $_POST['stuid'];
	$sturoll["sname"] = $_POST['sname'];
	$sturoll["snumber"] = $_POST['snumber'];
	$sturoll["ssex"] = $_POST['ssex'];
	$sturoll["ssys"] = $_POST['ssys'];
	$sturoll["senter"] = $_POST['senter'];
	$sturoll["sgrad"] = $_POST['sgrad'];
	$sturoll["sbirth"] = $_POST['sbirth'];
	$sturoll["sidnumber"] = $_POST['sidnumber'];
	$sturoll["snative"] = $_POST['snative'];
	$sturoll["sdesc"] = $_POST['sdesc'];
	$sturoll["scollegeid"] = $_POST['scollegeid'];
	$sturoll["sgradeid"] = $_POST['sgradeid'];
	$sturoll["sclassid"] = $_POST['sclassid'];
	$sturoll["simage"] = $_FILES['simage'];
//	print_r($sturoll);
	$flag = updateSturoll($sturoll);
	if($flag){
?>
		<script>
			alert("修改成功。。。");
			location.href = "../Select/selectStu_roll_infor.php";
		</script>
<?php
	}else{
?>
		<script>
			alert("修改失败。。。");
			location.href = "../Select/selectStu_roll_infor.php";
		</script>
<?php
	}
?>